package com.yitong.equipment.ui.adapter.courseprovider

import com.chad.library.adapter.base.provider.BaseNodeProvider
import com.chad.library.adapter.base.entity.node.BaseNode
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.yitong.equipment.R

class SecondProvider : BaseNodeProvider() {
    override val itemViewType: Int
        get() = 2
    override val layoutId: Int
        get() = R.layout.item_node_second

    override fun convert(helper: BaseViewHolder, data: BaseNode) {
        val entity = data as SecondData
        helper.setText(R.id.title, entity.title)
        helper.setText(R.id.time, entity.time)
    }
}